package CoreNRMSystem;
/**
 * Generated from IDL enum "EthernetPortAttributeType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class EthernetPortAttributeType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _semiduplex10M = 0;
	public static final EthernetPortAttributeType semiduplex10M = new EthernetPortAttributeType(_semiduplex10M);
	public static final int _fullDuplex10M = 1;
	public static final EthernetPortAttributeType fullDuplex10M = new EthernetPortAttributeType(_fullDuplex10M);
	public static final int _semiduplex100M = 2;
	public static final EthernetPortAttributeType semiduplex100M = new EthernetPortAttributeType(_semiduplex100M);
	public static final int _fullDuplex100M = 3;
	public static final EthernetPortAttributeType fullDuplex100M = new EthernetPortAttributeType(_fullDuplex100M);
	public static final int _semiduplex1000M = 4;
	public static final EthernetPortAttributeType semiduplex1000M = new EthernetPortAttributeType(_semiduplex1000M);
	public static final int _fullDuplex1000M = 5;
	public static final EthernetPortAttributeType fullDuplex1000M = new EthernetPortAttributeType(_fullDuplex1000M);
	public static final int _semiduplexSelfAdapted = 6;
	public static final EthernetPortAttributeType semiduplexSelfAdapted = new EthernetPortAttributeType(_semiduplexSelfAdapted);
	public static final int _fullDuplexSelfAdapted = 7;
	public static final EthernetPortAttributeType fullDuplexSelfAdapted = new EthernetPortAttributeType(_fullDuplexSelfAdapted);
	public int value()
	{
		return value;
	}
	public static EthernetPortAttributeType from_int(int value)
	{
		switch (value) {
			case _semiduplex10M: return semiduplex10M;
			case _fullDuplex10M: return fullDuplex10M;
			case _semiduplex100M: return semiduplex100M;
			case _fullDuplex100M: return fullDuplex100M;
			case _semiduplex1000M: return semiduplex1000M;
			case _fullDuplex1000M: return fullDuplex1000M;
			case _semiduplexSelfAdapted: return semiduplexSelfAdapted;
			case _fullDuplexSelfAdapted: return fullDuplexSelfAdapted;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _semiduplex10M: return "semiduplex10M";
			case _fullDuplex10M: return "fullDuplex10M";
			case _semiduplex100M: return "semiduplex100M";
			case _fullDuplex100M: return "fullDuplex100M";
			case _semiduplex1000M: return "semiduplex1000M";
			case _fullDuplex1000M: return "fullDuplex1000M";
			case _semiduplexSelfAdapted: return "semiduplexSelfAdapted";
			case _fullDuplexSelfAdapted: return "fullDuplexSelfAdapted";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected EthernetPortAttributeType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
